package com.iap.client.context
{
	import com.iap.app.data.AppData;
	import com.iap.app.data.IAppData;
	import com.iap.client.mediator.FavoriteEditComboWindowMediator;
	import com.iap.client.view.favorite.FavoriteEditComboWindow;
	import com.iap.common.command.FavoriteCommand;
	import com.iap.common.command.FillerCommand;
	import com.iap.common.command.InstanceFavoriteCommand;
	import com.iap.common.command.SampleCommand;
	import com.iap.common.service.FavoriteService;
	import com.iap.common.service.FillerService;
	import com.iap.common.service.IFavoriteService;
	import com.iap.common.service.IFillerService;
	import com.iap.common.service.IInstanceFavoriteService;
	import com.iap.common.service.ISampleService;
	import com.iap.common.service.InstanceFavoriteService;
	import com.iap.common.service.SampleService;
	import com.iap.common.signal.FavoriteRequestSignal;
	import com.iap.common.signal.FillerRequestSignal;
	import com.iap.common.signal.InstanceFavoriteRequestSignal;
	import com.iap.common.signal.SampleRequestSignal;
	
	import flash.display.DisplayObjectContainer;
	
	import org.robotlegs.mvcs.SignalContext;
	
	public class FavoriteEditComboWindowContext extends SignalContext
	{
		override public function startup():void
		{
			injector.mapSingletonOf(IAppData, AppData);
			injector.mapSingletonOf(IFillerService, FillerService);
			injector.mapSingletonOf(IInstanceFavoriteService, InstanceFavoriteService);
			
			signalCommandMap.mapSignalClass(FillerRequestSignal, FillerCommand);
			signalCommandMap.mapSignalClass(InstanceFavoriteRequestSignal, InstanceFavoriteCommand);
			
			mediatorMap.mapView(FavoriteEditComboWindow, FavoriteEditComboWindowMediator);
		}
	}
}